-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement clean_chroot, #267
base: master
Are you sure you want to change the base?
Conversation
avoid host environment variables such as TMP to leak into the chroot fixes grml#232
Some optional explanation why I made certain changes the way I made them. If we use
Even A potential alternative that I personally would use is
Which environment variables are passed into the chroot is currently hardcoded. I didn't think it is important to be able to configure that. If somebody needs to configure that, I guess they can create a feature request and/or send a pull request. The xtrace ( I was also wondering if it was better to use a similar mechanism to the one you're using for |
Resolved merge conflict. |
Ping? |
Good now? |
Ping? |
grml-debootstrap
Outdated
einfo "End of debootstrap.log" | ||
fi | ||
## Check if "bailout" function is available. | ||
## This is not the case in chroot-script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, I don't understand why this change ends up in this clean_chroot feature/commit, is the github web UI showing something unexpected? o_
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure where you saw that. But GitHub says Outdated
". I cannot see any change related to / near ## Check if "bailout" function is available.
in a local git diff.
@@ -26,7 +25,6 @@ set -e | |||
set -E | |||
set -o pipefail | |||
trap "error_handler" ERR | |||
export -f "error_handler" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is removing the export of the error_handler from grml-debootstrap
and addition of it to chroot script related to the environment cleanup, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you mentioned this in a comment as I just noticed:
If we use env -i then we can no longer export shell functions. So export -f "error_handler" had to be removed.
We should squash all the relevant commits into one single commit and provide that useful information you collected into the commit message :)
Do you want me to give this a try or would you prefer to try on your own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to give this a try
Yes, please.
use env instead
Ping? |
Sorry4delay, finally found some time to look into this, see #280 |
avoid host environment variables such as TMP to leak into the chroot
fixes #232